Optimal. Leaf size=306 \[ \frac {e^{\frac {A (1+m)}{B n}} (1+m)^2 (a+b x) (g (a+b x))^{-2-m} \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )^{\frac {1+m}{n}} (i (c+d x))^{2+m} \text {Ei}\left (-\frac {(1+m) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{B n}\right )}{2 B^3 (b c-a d) i^2 n^3 (c+d x)}-\frac {(a+b x) (g (a+b x))^{-2-m} (i (c+d x))^{2+m}}{2 B (b c-a d) i^2 n (c+d x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}+\frac {(1+m) (a+b x) (g (a+b x))^{-2-m} (i (c+d x))^{2+m}}{2 B^2 (b c-a d) i^2 n^2 (c+d x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.26, antiderivative size = 306, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 49, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.082, Rules used = {2563, 2343,
2347, 2209} \begin {gather*} \frac {(m+1)^2 (a+b x) e^{\frac {A (m+1)}{B n}} (g (a+b x))^{-m-2} (i (c+d x))^{m+2} \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )^{\frac {m+1}{n}} \text {Ei}\left (-\frac {(m+1) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{B n}\right )}{2 B^3 i^2 n^3 (c+d x) (b c-a d)}+\frac {(m+1) (a+b x) (g (a+b x))^{-m-2} (i (c+d x))^{m+2}}{2 B^2 i^2 n^2 (c+d x) (b c-a d) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )}-\frac {(a+b x) (g (a+b x))^{-m-2} (i (c+d x))^{m+2}}{2 B i^2 n (c+d x) (b c-a d) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2209
Rule 2343
Rule 2347
Rule 2563
Rubi steps
\begin {align*} \int \frac {(223 c+223 d x)^m (a g+b g x)^{-2-m}}{\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^3} \, dx &=\int \frac {(223 c+223 d x)^m (a g+b g x)^{-2-m}}{\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^3} \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 0.22, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(a g+b g x)^{-2-m} (c i+d i x)^m}{\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^3} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.05, size = 0, normalized size = 0.00 \[\int \frac {\left (b g x +a g \right )^{-2-m} \left (d i x +c i \right )^{m}}{\left (A +B \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right )\right )^{3}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 612 vs. \(2 (297) = 594\).
time = 0.45, size = 612, normalized size = 2.00 \begin {gather*} -\frac {{\left (B^{2} a c n^{2} + {\left (B^{2} b d n^{2} - {\left ({\left (A B + B^{2}\right )} b d m + {\left (A B + B^{2}\right )} b d\right )} n\right )} x^{2} - {\left ({\left (A B + B^{2}\right )} a c m + {\left (A B + B^{2}\right )} a c\right )} n + {\left ({\left (B^{2} b c + B^{2} a d\right )} n^{2} - {\left ({\left (A B + B^{2}\right )} b c + {\left (A B + B^{2}\right )} a d + {\left ({\left (A B + B^{2}\right )} b c + {\left (A B + B^{2}\right )} a d\right )} m\right )} n\right )} x - {\left ({\left (B^{2} b d m + B^{2} b d\right )} n^{2} x^{2} + {\left (B^{2} b c + B^{2} a d + {\left (B^{2} b c + B^{2} a d\right )} m\right )} n^{2} x + {\left (B^{2} a c m + B^{2} a c\right )} n^{2}\right )} \log \left (\frac {b x + a}{d x + c}\right )\right )} {\left (i \, d x + i \, c\right )}^{m} e^{\left (-{\left (m + 2\right )} \log \left (i \, d x + i \, c\right ) - {\left (m + 2\right )} \log \left (-i \, g\right ) - {\left (m + 2\right )} \log \left (\frac {b x + a}{d x + c}\right )\right )} + {\left ({\left (B^{2} m^{2} + 2 \, B^{2} m + B^{2}\right )} n^{2} \log \left (\frac {b x + a}{d x + c}\right )^{2} + {\left (A^{2} + 2 \, A B + B^{2}\right )} m^{2} + 2 \, {\left ({\left (A B + B^{2}\right )} m^{2} + A B + B^{2} + 2 \, {\left (A B + B^{2}\right )} m\right )} n \log \left (\frac {b x + a}{d x + c}\right ) + A^{2} + 2 \, A B + B^{2} + 2 \, {\left (A^{2} + 2 \, A B + B^{2}\right )} m\right )} {\rm Ei}\left (-\frac {{\left (B m + B\right )} n \log \left (\frac {b x + a}{d x + c}\right ) + {\left (A + B\right )} m + A + B}{B n}\right ) e^{\left (-\frac {{\left (B m + 2 \, B\right )} n \log \left (-i \, g\right ) - {\left (A + B\right )} m - A - B}{B n}\right )}}{2 \, {\left ({\left (B^{5} b c - B^{5} a d\right )} n^{5} \log \left (\frac {b x + a}{d x + c}\right )^{2} + 2 \, {\left ({\left (A B^{4} + B^{5}\right )} b c - {\left (A B^{4} + B^{5}\right )} a d\right )} n^{4} \log \left (\frac {b x + a}{d x + c}\right ) + {\left ({\left (A^{2} B^{3} + 2 \, A B^{4} + B^{5}\right )} b c - {\left (A^{2} B^{3} + 2 \, A B^{4} + B^{5}\right )} a d\right )} n^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (c\,i+d\,i\,x\right )}^m}{{\left (a\,g+b\,g\,x\right )}^{m+2}\,{\left (A+B\,\ln \left (e\,{\left (\frac {a+b\,x}{c+d\,x}\right )}^n\right )\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________